package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 紫煦桉
 */
public class BooksReturn extends AbstractToString {
    private Integer returnNo;
    private BooksMessage booksMessage;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date returnDate;
    private ReaderMessage readerMessage;

    public BooksReturn() {
    }

    public BooksReturn(Integer returnNo) {
        this.returnNo = returnNo;
    }

    public BooksReturn(Integer returnNo, Date returnDate) {
        this.returnNo = returnNo;
        this.returnDate = returnDate;
    }

    public BooksReturn(Integer returnNo, BooksMessage booksMessage, Date returnDate, ReaderMessage readerMessage) {
        this.returnNo = returnNo;
        this.booksMessage = booksMessage;
        this.returnDate = returnDate;
        this.readerMessage = readerMessage;
    }

    public Integer getReturnNo() {
        return returnNo;
    }

    public void setReturnNo(Integer returnNo) {
        this.returnNo = returnNo;
    }

    public BooksMessage getBooksMessage() {
        return booksMessage;
    }

    public void setBooksMessage(BooksMessage booksMessage) {
        this.booksMessage = booksMessage;
    }

    public Date getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(Date returnDate) {
        this.returnDate = returnDate;
    }

    public ReaderMessage getReaderMessage() {
        return readerMessage;
    }

    public void setReaderMessage(ReaderMessage readerMessage) {
        this.readerMessage = readerMessage;
    }
}
